﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
//using EasyNetQ;

namespace MQ.Core.Admin.Extensions.Mq
{
    public static class RabbitConnectionExtension
    {
        public static IServiceCollection AddRabbitConnection(this IServiceCollection services, IConfiguration configuration)
        {
            var rabbitOption = new RabbitOption(configuration);
            //var bus = RabbitHutch.CreateBus(rabbitOption.Uri);
            //services.Add(ServiceDescriptor.Singleton(bus));
            return services;
        }
    }
}
